package com.bulldog.spider;

import us.codecraft.webmagic.Page;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.Spider;
import us.codecraft.webmagic.processor.PageProcessor;

public class LdpGroupProcessor implements PageProcessor {

    private Site site = Site.me().setRetryTimes(3).setSleepTime(100);

    @Override
    public void process(Page page) {
        page.putField("集团介绍", page.getHtml().xpath("//div[@class='am-u-sm-12']").toString());
    }

    @Override
    public Site getSite() {
        return site;
    }

}